import request from '@/utils/request'
const BASE_URL = '/apis'

export function getLicense() {
  return request({
    url: BASE_URL + '/api/v1/license/seriesnumber',
    method: 'get'
  })
}

export function importLicense(data) {
  return request({
    url: BASE_URL + '/api/v1/license/seriesnumber',
    method: 'post',
    data: data
  })
}

export function getLicenseRegistercode() {
  return request({
    url: BASE_URL + '/api/v1/license/registercode',
    method: 'get'
  })
}
